package cart.service;

import common.model.result.Result;

import java.util.List;

public interface ICartService {
    Result addToCart(Long uid, Long skuId, Integer number);
    //移出购物车
    void deleteFromCart(String id);
    //购物车列表
    Result getCartsByUid(Long uid);
    //根据前端选中的id集合移出购物车
    void deleteCartByUidandCartIds(Long uid, List<String> cartIds);
    //更新购物车数量
    void updateNumber(String id, Integer quantity);
    Result getCartsByUidandCartIds(Long uid, List<String> cartIds);
    Result getCartListByAdmin(Integer page, Integer size, String query);
    Result deleteCartItem(String id);
    Result deleteCartItemList(Long userId);
}
